<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>title</title>
    <style>
    	body{
    		background:#32323A;margin:auto; padding:0;font-family:"Microsoft YaHei","Helvetica","方正兰亭黑简体",sans-serif;
    	}
   		
   		.dayList{
   			margin-top:60px;
   			
   		}
   		.dayList span{
   			/* border:2px solid white;*/ 
   			
   			margin-left:50px;
   			text-align:center;
   			color: #FFFFFF;
	        font-size:20px;
	        padding-bottom: 5px;
   		}
   		.dayList .shoot{
   		    height:30px;
   			 /*border:1px solid white; */
   			margin-top: 12px;
   			margin-left: 20px;
   		}
   		.dayList .shoot img{
   		    float:left;
   			/* border:1px solid white; */
   			height: 30px;
   			width: 30px;
   		}
   		.dayList .shoot a{
   		    float:left;
   		    margin-left:10px;
   		    margin-top:5px;
   			/* border:1px solid white; */
   			color: #FFFFFF;
   			font-size: 16px;
   		}
   		.menuList{
   			margin-top:25px;
   			
   		}
   		.menuList span{
   			/* border:2px dashed white;  */
   			
   			margin-left:50px;
   			text-align:center;
   			color: #FFFFFF;
	        font-size:20px;
	        padding-bottom: 5px;
   		}
   		.menuList .shoot{
   		    height:30px;
   			/* border:1px solid white; */
   			margin-top: 7px;
   			margin-left: 20px;
   		}
   		.menuList .shoot img{
   		    float:left;
   			/* border:1px solid white; */
   			height: 30px;
   			width: 30px;
   		}
   		.menuList .shoot a{
   		    float:left;
   		    margin-left:10px;
   		    margin-top:5px;
   			/* border:1px solid white; */
   			color: #FFFFFF;
   			font-size: 16px;
   		}
.exitA{
	padding-top:20px;
	padding-left:20px;
	padding-right:59px;	
	height:56px;
	/*width:100%;*/
	color:#fff;
	font-size:20px;
	font-family:"方正兰亭黑简体","Microsoft YaHei";
	line-height:20px;
	/* border:1px solid white; */
}
.exitA img{
    float:left;
	/* border:1px solid white; */
	height: 30px;
	width: 30px;
}
.exitA a{
    float:left;
    margin-left:10px;
    margin-top:5px;
	/* border:1px solid white; */
	color: #FFFFFF;
	font-size: 20px;
}
.save-btn #svBtn{
 	display:inline-block;
	height:35px;
	width:242px;
	margin-top:12px;
	border:none;
	background-color:#D65B5D;
	border-radius:10px;
	outline:none;
	color:#fff;
	font-size:16px;
	font-family:"方正兰亭黑简体","Microsoft YaHei";
	line-height:16px;
	text-align:center;
	cursor:pointer;
	text-decoration:none;
} 
    </style>
</head>
<body>
	<div class="dayList" id="dayList">
		 <span>试块管理</span>
		 <div class="shoot" onclick="openInventory()">
		    <img src="" />
		 	<a id="shoot">试块查询</a>
		 </div>
		 <div class="shoot" onclick="openInStorage()">
		    <img src="" />
		 	<a id="preCore">试块入库</a>
		 </div>
		 <div class="shoot" onclick="openOutStorage()">
		    <img src="" />
		 	<a id="coating">试块出库</a>
		 </div>
		 <div class="shoot" onclick="openMachiningRe()">
		    <img src="" />
		 	<a id="pBox">加工接收</a>
		 </div>
		 <div class="shoot" onclick="openReciveBlock()">
		    <img src="" />
		 	<a id="dry">检测接收</a>
		 </div>
		 <div class="shoot" onclick="openConfirmCheck()">
		    <img src="" />
		 	<a id="coreing">检测确认</a>
		 </div>
		<div class="shoot" onclick="openOutsourcing()">
		    <img src="" />
		 	<a id="coating">委外出库</a>
		 </div>
		 <div class="shoot" onclick="openOutsourcingRurn()">
		    <img src="" />
		 	<a id="shoot">委外返回接收</a>
		 </div>
		 <div class="shoot" onclick="openDestroyBlock()">
		    <img src="" />
		 	<a id="coreing">试块销毁</a>
		 </div>
	</div>
	
	
	<div class="exitA" >
		<img src="" />
	        <a id="pBox">退出</a>
	</div>
	<!--<input type="hidden"  id="gongxu"/>-->
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/public/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="../script/public/public.js"></script>
<script type="text/javascript" src="../script/core/core.js"></script>
<script type="text/javascript">
	apiready = function(){
	 
		api.addEventListener({
		    name:'swipeleft'
		}, function(ret, err){        
		   api.closeFrame({
	           name: 'leftMenu'
           });
		});
		api.addEventListener({
		    name:'swipeup'
		}, function(ret, err){        
		   api.closeFrame({
	           name: 'leftMenu'
           });
		});
		api.addEventListener({
		    name:'swipedown'
		}, function(ret, err){        
		   api.closeFrame({
	           name: 'leftMenu'
           });
		});
	};
	

    //点击退出
	$(".exitA").click(function(){
	var userName=$api.getStorage("user").userName;
	var password=$api.getStorage("user").password;  
	$api.rmStorage("user"); 
	$api.rmStorage("keepLogin"); 

       api.openWin({
	        name: 'login',
	        url: 'win_login.html',
	         pageParam:{
		         userName:userName,
		         password:password,
		         isSign:'0'
		        },
		    reload:true,
	         rect: {
		        x: 0,
		        y: 0,
		        w: 'auto',
                h: 'auto'
		    }
        });
        api.closeWin();
	});
	//打开试块查询
	function openInventory(){
 
    	api.openWin({
            name: 'inventory',
            url: 'win_inventory.html',
		    reload:true,
            rect: {
                x: 0,
                y: 0,
                w: 'auto',
                h: 'auto'
            }
         });
         api.closeFrame({
	           name: 'leftMenu'
           });
	}
	//打开试块入库
	function openInStorage(){

    	api.openWin({
            name: 'win_inStorage',
            url: 'win_inStorage.html',
		    reload:true,
            rect: {
                x: 0,
                y: 0,
                w: 'auto',
                h: 'auto'
            }
         });
         api.closeFrame({
	           name: 'leftMenu'
           });
	}
	//打开试块出库
	function openOutStorage(){

    	api.openWin({
            name: 'win_outStorage',
            url: 'win_outStorage.html',
		    reload:true,
            rect: {
                x: 0,
                y: 0,
                w: 'auto',
                h: 'auto'
            }
         });
         api.closeFrame({
	           name: 'leftMenu'
           });
	}
	//试块接收
	function openReciveBlock(){
		api.openWin({
            name: 'win_reciveBlock',
            url: 'win_reciveBlock.html',
		    reload:true,
            rect: {
                x: 0,
                y: 0,
                w: 'auto',
                h: 'auto'
            }
         });
         api.closeFrame({
	           name: 'leftMenu'
           });
	}
	//试块销毁
	function openDestroyBlock(){
		api.openWin({
            name: 'win_destroyBlock',
            url: 'win_destroyBlock.html',
		    reload:true,
            rect: {
                x: 0,
                y: 0,
                w: 'auto',
                h: 'auto'
            }
         });
         api.closeFrame({
	           name: 'leftMenu'
           });
	}
	//加工接收
	function openMachiningRe(){
		api.openWin({
            name: 'win_maReciveBlock',
            url: 'win_maReciveBlock.html',
		    reload:true,
            rect: {
                x: 0,
                y: 0,
                w: 'auto',
                h: 'auto'
            }
         });
         api.closeFrame({
	           name: 'leftMenu'
           });
	}
	
	//检测确认
	function openConfirmCheck(){
		api.openWin({
            name: 'win_confirmCheck',
            url: 'win_confirmCheck.html',
		    reload:true,
            rect: {
                x: 0,
                y: 0,
                w: 'auto',
                h: 'auto'
            }
         });
         api.closeFrame({
	           name: 'leftMenu'
           });
	}
	//委外出库
	function openOutsourcing(){
		api.openWin({
            name: 'win_outSourcing',
            url: 'win_outSourcing.html',
		    reload:true,
            rect: {
                x: 0,
                y: 0,
                w: 'auto',
                h: 'auto'
            }
         });
         api.closeFrame({
	           name: 'leftMenu'
           });
	}
	//委外返回
	function openOutsourcingRurn(){
		api.openWin({
            name: 'win_outSourcingReceive',
            url: 'win_outSourcingReceive.html',
		    reload:true,
            rect: {
                x: 0,
                y: 0,
                w: 'auto',
                h: 'auto'
            }
         });
         api.closeFrame({
	           name: 'leftMenu'
           });
	}
</script>
</html>